From: Owen W. Taylor Date: Wed, 26 May 2010 20:53:20 +0000 (-0400) Subject: [perf] Write UTC dates into performance logs X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10019 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b971a66ba85f221a41d91f20f724935882df924;p=gnome-shell.git [perf] Write UTC dates into performance logs Instead of writing a local date without a timezone, write a UTC date with a trailing Z. --- diff --git a/src/gnome-shell.in b/src/gnome-shell.in index 772a8cf6f..2dfb4f3a0 100644 --- a/src/gnome-shell.in +++ b/src/gnome-shell.in @@ -439,7 +439,7 @@ def run_performance_test(): # version here for simplicity. Using json.dump(indent=0) doesn't real # improve the readability of the output much. report = { - 'date': datetime.datetime.now().isoformat(), + 'date': datetime.datetime.utcnow().isoformat() + 'Z', 'events': events, 'monitors': monitors, 'metrics': metric_summaries,